Skip to main content

All Questions

Tagged with
0votes
0answers
28views

XMLHttpRequest cannot load due to access control checks when reloading the page

I am working on a live ticker which works fine but when I am reloading the page I am running into this error: XMLHttpRequest cannot load https://liveticker.local/ajax/ajax-liveticker.php due to access ...
Alexander Galler's user avatar
0votes
2answers
104views

What is different in my Ajax vs XMLHttpRequest Call that lets my Server understand Ajax but not XMLHttpRequest?

I have a very simple server call like this: [HttpPost] [AllowAnonymous] public JsonResult Test(TestRequestModel requestModel) { //do stuff return Json(new { result.Success }); } My ...
Bagzli's user avatar
  • 6,605
0votes
1answer
46views

Ajax request launches struts action with empty parameters

The ajax request launches a struts action with empty parameters. When using dev mode on firefox and debugging the code, i can see that when the breakpoint stops inside the action, the XHR envelope on ...
micanti's user avatar
0votes
0answers
57views

XHR Data Transfer Between Javascript and PHP

JS dispatch was successful. But it does not enter the if block in PHP. Whereas before I restarted the computer successfully entered the if block in PHP. When successful, the data received is “1”. ...
Muhammad Rifqi Amir Putra's user avatar
0votes
0answers
39views

Google login doesn't redirect

I having trouble with my google login using firebase auth. What i want to do is if the user email is already exist in the database it will redirect the user to its respective page and then if not, the ...
Cardenas Juniel P's user avatar
1vote
0answers
78views

jQuery Ajax data server capacity problem with 503 errors

I am working with WordPress, attempting to POST an Ajax request that contains a JSON string of approximately 5000 characters. It returns a 503 error, suggesting a capacity issue. 503 Service ...
wordpress user's user avatar
0votes
1answer
84views

Why is my XMLHttpRequest progress console log not showing?

The progess of the file upload is not being console logged. Why? Here is the code I have: const xhr = new XMLHttpRequest(); xhr.open('POST', apiUrl); xhr.upload.addEventListener("progress&...
drh's user avatar
0votes
0answers
46views

Debugging Ajax/XmlHttpRequests using Xdebug on Sublime

What settings should I use for debugging PHP files called by XmlHttpRequests? My client is coded in Elm, so it is a single page application (SPA) invoking a series of PHP files. When I am debugging, ...
Charles Looker's user avatar
0votes
0answers
42views

My redirection is failing after I upload my file

Here's the block of code that I'm struggling with. This jQuery function uploads a file with ajax, but after the file is uploaded, I fails to complete the redirect, and just returns to the file upload ...
T Squared's user avatar
0votes
1answer
596views

Is XMLHttpRequest secure over HTTPS?

I am developing a PHP/JS web application in which I make heavy use of the XMLHttpRequest object (for page updates / AJAX, etc.). Among many other areas, I use this in my user management code (login, ...
user avatar
1vote
1answer
141views

XHR Request is pending until whole audio file fetch [closed]

I have a PHP music site that audio files played through java script : audio.src = uri; audio.load(); audio.play().then( r => { //set somethings } ); ...
Max Payne's user avatar
0votes
0answers
36views

Reading the content of a file with JavaScript from the server and returning it to the application

I have a JavaScript function that reads a file from the server. I wanted it to return the result to me, but it doesn't work. The codes are as follows. The alert does not work. what is the reason ? And ...
Bahram's user avatar
0votes
1answer
169views

XMLHttpRequestUpload loadend event fires immediately regardless of actual upload process in React

When I call this function in my react app ( awaiting it in a try...catch block ) the onloadend and onprogress events are fired immediately although the actual uploading process takes some time ( I ...
Pooya's user avatar
0votes
0answers
64views

how to download zip file used by AJAX java

After passing the data to the controller through ajax, I finished creating a zip file in the C:\Users\user\AppData\Local\Temp folder. It does open well in above folder I mentioned it. But when I click ...
King Henry's user avatar
-1votes
1answer
312views

$_POST is empty while Request Payload shows data, XMLHttpRequest [duplicate]

Have a good day! I'm using a JavaScript function to call a self-made php page via the post method, the $_POST variable remains empty though. I'm pretty new into PHP world and my problem might be a ...
Merlin the Immortal's user avatar

153050per page
close